
function initState() {
    return {
        locale: localStorage.getItem('locale') || 'zh-CN',              //当前语言 
    }
}

export default {
    namespace: 'global',
    state: { ...initState() },
    effects: {
    },
    reducers: {
        setState(state, action) {
            return { ...state, ...action.payload };
        },
        init(state, action) {
            return { ...initState() }
        }
    },

};
